package com.kaishengit.pojo;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Table(name="t_project")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class Project {
	private int id;
	private String projname;
	private String projdesc;
	private String createtime;
	private List<Userproject> userproject;
	private List<Goal> goallist;
	private List<Document> documentList;
	private List<Filetype> filetypelist;
	private List<Linkman> linkmanList;
	private List<Idea> ideaList;
	private List<Message> messageList;
	private List<Atmessage> atmessageList;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getProjname() {
		return projname;
	}
	public void setProjname(String projname) {
		this.projname = projname;
	}
	public String getProjdesc() {
		return projdesc;
	}
	public void setProjdesc(String projdesc) {
		this.projdesc = projdesc;
	}
	public String getCreatetime() {
		return createtime;
	}
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}
	@OneToMany(mappedBy="project")
	public List<Userproject> getUserproject() {
		return userproject;
	}
	public void setUserproject(List<Userproject> userproject) {
		this.userproject = userproject;
	}
	@OneToMany(mappedBy="project")
	public List<Goal> getGoallist() {
		return goallist;
	}
	public void setGoallist(List<Goal> goallist) {
		this.goallist = goallist;
	}
	@OneToMany(mappedBy="project")
	public List<Document> getDocumentList() {
		return documentList;
	}
	public void setDocumentList(List<Document> documentList) {
		this.documentList = documentList;
	}
	@OneToMany(mappedBy="project")
	public List<Filetype> getFiletypelist() {
		return filetypelist;
	}
	public void setFiletypelist(List<Filetype> filetypelist) {
		this.filetypelist = filetypelist;
	}
	@OneToMany(mappedBy="project")
	public List<Linkman> getLinkmanList() {
		return linkmanList;
	}
	public void setLinkmanList(List<Linkman> linkmanList) {
		this.linkmanList = linkmanList;
	}
	@OneToMany(mappedBy="project")
	public List<Idea> getIdeaList() {
		return ideaList;
	}
	public void setIdeaList(List<Idea> ideaList) {
		this.ideaList = ideaList;
	}
	@OneToMany(mappedBy="project")
	public List<Message> getMessageList() {
		return messageList;
	}
	public void setMessageList(List<Message> messageList) {
		this.messageList = messageList;
	}
	@OneToMany(mappedBy="project")
	public List<Atmessage> getAtmessageList() {
		return atmessageList;
	}
	public void setAtmessageList(List<Atmessage> atmessageList) {
		this.atmessageList = atmessageList;
	}
}
